{extend name='./content'}
{block name="button"}
<div class="nowrap pull-right" style="margin-top:10px">
    <div class="layui-btn-group shop_name">
        统计金额<span>  {$sum_money} </span>人 交易笔数<span>  {$sum_order} </span>人

        <a href="{$self_url}&#38;date_type="
           class="layui-btn layui-btn-small {if $Think.get.date_type != ''}layui-btn-primary{else/}layui-btn-normal{/if}">全部</a>
        <a href="{$self_url}&#38;date_type=month"
           class="layui-btn layui-btn-small {if $Think.get.date_type != 'month'}layui-btn-primary{else/}layui-btn-normal{/if}">本月</a>
        <a href="{$self_url}&#38;date_type=week"
           class="layui-btn layui-btn-small {if $Think.get.date_type != 'week'}layui-btn-primary{else/}layui-btn-normal{/if}">本周</a>
        <a href="{$self_url}&#38;date_type=day"
           class="layui-btn layui-btn-small {if $Think.get.date_type != 'day'}layui-btn-primary{else/}layui-btn-normal{/if}">今日</a>
    </div>
    <a href="{$self_no_url}&action=dump" target="_blank" class="layui-btn layui-btn-small" style="">导出数据</a>
    <button type="button" class="layui-btn layui-btn-small layui-btn-danger" data-modal="/manage/order/del_batch">
        <i class="fa fa-remove"></i> 删除无效订单
    </button>
</div>
{/block}

{block name="content"}
<div class="deal_admin">
    <div class="deal_status">
        <div class="d_s_tips">
            <div class="tmain">交易成功，交易款项已转入卖方账户。<!--纠纷-->
                <div class="dispute_html">
                    <dl><img src="https://suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569891600.jpg"
                             class="avatar">
                        <dt><cite><font color="#ff0000">对方</font></cite><cite>退款原因</cite><cite>2020-12-21
                            10:17:58</cite></dt>
                        <dd>【货不对版】若 对方 在【2天12小时32分6秒】内未申诉或申诉理由不成立，交易自动完成，款项将转入 您 的账户。若 对方
                            在【2天12小时32分6秒】内未申诉或申诉理由不成立，交易自动完成，款项将转入 您 的账户。
                        </dd>
                    </dl>
                    <dl class="fortips"><p>【2020-12-21 10:18:11】<font color="#ff0000">对方</font> 申请码发布人工客服介入该笔交易纠纷。</p>
                    </dl>
                    <dl class="fortips"><p>【2020-12-21 10:19:00】<font color="#ff0000">对方</font> 申请码发布人工客服介入该笔交易纠纷。</p>
                    </dl>
                    <dl><img src="https://suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569891600.jpg"
                             class="avatar">
                        <dt><cite><font color="#ff0000">对方</font></cite><cite>退款原因</cite><cite>2020-12-21
                            10:25:40</cite></dt>
                        <dd>测试123123123</dd>
                    </dl>
                    <dl class="mine"><img src="//suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569916994.jpg"
                                          class="avatar">
                        <dt><cite><font color="#247fbd">您</font></cite><cite>拒绝原因</cite><cite>2020-12-21 10:30:42</cite>
                        </dt>
                        <dd>测试测试测试测试测试测试测试测试测试</dd>
                    </dl>
                    <dl class="mine"><img src="//suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569916994.jpg"
                                          class="avatar">
                        <dt><cite><font color="#247fbd">您</font></cite><cite>拒绝原因</cite><cite>2020-12-21 10:30:58</cite>
                        </dt>
                        <dd>测试测试测试测试测试测试测试测试测试</dd>
                    </dl>
                    <dl class="mine"><img src="//suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569916994.jpg"
                                          class="avatar">
                        <dt><cite><font color="#247fbd">您</font></cite><cite>拒绝原因</cite><cite>2020-12-21 10:31:13</cite>
                        </dt>
                        <dd>测试测试测试测试测试测试测试测试测试</dd>
                    </dl>
                    <textarea name="" required lay-verify="required" placeholder="请输入管理员回复信息" class="layui-textarea"></textarea>
                    <button type="button" class="layui-btn layui-btn-fluid">提交信息</button>

                </div><!--纠纷-->
            </div>
        </div>
    </div>
        <div class="deal_tit">
            <li>订单信息（编号：160851599163）
                <div class="hisbtn"><input class="order_handle" type="button" value="交易时间延长详情" data="delay_info">		</div>
            </li>
        </div>
        <div class="deal_info">
            <ul>
                <li class="l1">交易类型</li>
                <li class="l2">
                    <a href="/code/goods13538.html" target="_blank">[源码]超好影视网站PHP源码,一键采集视频资源,对接第三方免签码支付,可设置每个视频是否收费</a></li>
            </ul>

            <ul>
                <li class="l1">买方</li>
                <li class="l2 orlx"> <strong>时光</strong> <span>【</span><span class="uim" data-info="时光|https://suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569891600.jpg" data-str="77yaNjY5ODMyMzksfDE1MTE2ODExNTI4"><div class="qq" title="联系QQ"><p><b>：</b>66983239</p></div><div class="phone" title="联系电话"><p>15116811528</p></div></span><span>】</span></li>
            </ul>

            <ul>
                <li class="l1">卖方</li>
                <li class="l2 orlx"><strong>留爱网络</strong> <span>【</span><span class="uim" data-info="留爱网络|//suzhizhan.oss-cn-beijing.aliyuncs.com/upload/user/tx/u1569916994.jpg" data-str="55WZ54ix77yaNjU2NzIyODU5LA=="><div class="qq" title="联系QQ"><p><b>留爱：</b>656722859</p></div></span><span>】</span></li>
            </ul>
            <ul>
                <li class="l1">安装服务</li>
                <li class="l2"><font class="green">免费</font><span style="cursor:pointer;" class="installing" data_s="0" data_u="" data_d="" data_m="" data_t="" data_i="" data_b="">【要求说明】</span></li>
            </ul>  <ul>
            <li class="l1">交易金额</li>
            <li class="l2"><font color="#ff6600">199.00</font> 元  </li>
        </ul>

            <ul>
                <li class="l1">中介费2%</li>
                <li class="l2">
                    卖家支付<span>【买方支付共计<font color="#ff0000">199.00</font>元，交易成功后卖方可获<font color="#ff6600">193.03</font>元】</span>
                </li>
            </ul>

            <ul>
                <li class="l1">
                    消保赔付
                </li>
                <li class="l2">
                    <a href="/protection/" target="_blank"><i class="layui-icon green">&#xe605;
                    </i><span>【若交易失败（退款），卖方需额外向买方支付消保赔付金（交易额的5~10%）】</span></a>
                </li>
            </ul>

            <ul class="sbt">

                <li class="l1">&nbsp; </li>
                <li class="l2" style="BORDER:0">
                    <div id="tjbtn">
                        <button type="button" class="layui-btn" onclick="order_yan()">延长交易时间</button>
                        <button type="button" class="layui-btn" onclick="order_tui()">强制退款</button>
                        <button type="button" class="layui-btn" onclick="order_complete()">强制交易完成</button>
                    </div>
                </li>
            </ul>

        </div>
</div>
<script>
    function order_yan(obj, id) {
        layer.confirm('确认要延长交易时间这个订单吗？该操作不可恢复', function (index) {
            $.ajax({
                url: "xxx",
                type: 'post',
                data: 'id=' + id,
                success: function (res) {
                    if (res.code == 1) {

                    } else {

                    }
                }
            });
        });
    }

    function order_tui(obj, id) {
        layer.confirm('确认要强制退款这个订单吗？该操作不可恢复', function (index) {
            $.ajax({
                url: "xxx",
                type: 'post',
                data: 'id=' + id,
                success: function (res) {
                    if (res.code == 1) {

                    } else {

                    }
                }
            });
        });
    }
    function order_complete(obj, id) {
        layer.confirm('确认要强制交易完成这个订单吗？该操作不可恢复', function (index) {
            $.ajax({
                url: "xxx",
                type: 'post',
                data: 'id=' + id,
                success: function (res) {
                    if (res.code == 1) {

                    } else {

                    }
                }
            });
        });
    }
</script>
{/block}
